Title Banner


Technical Q&A's


GXPD 11 - QuickDraw GX and PDDs (1-May-95)


Q We are developing a facility to view PDDs within an application and need help with some problems we're having. We are able to load pages and display them, but we also need to select text from the display and obtain the characters from the selection (the application associates the text with other information). We also need to frame the selection once it is associated with the other information, so the user can see what was associated.

We are using GXReadPrintFilePage to load and display the pages from the PDD, but we're not sure what we should use to hit-test the PDD and perform the selection.

A GXReadPrintFilePage is the right call for what you are doing, as it gives you a GX picture shape which may contain many other GX shapes or other picture shapes. There are, however, many different approaches to hit-testing picture shapes, which makes it difficult to provide one piece of sample code or one specific answer. Depending on the needs of your application, you may want to hit-test text or layout shapes, and you may or may not want the user to be able to hit individual shapes which are members of picture shapes within the page picture shape.

Hit testing of pictures is documented in Inside Macintosh: QuickDraw GX Graphics, starting on page 6-46. There is also a Hit Test sample on the GX SDK CD which shows options for hit testing various types of GX shapes.

Technical Support
Technical Q&As
Previous Question | Contents | Next Question

Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help